package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.WmItemRecpt;
import org.example.erp.domain.WmItemRecptLine;
import org.example.erp.domain.Workstation;
import org.example.erp.mapper.WmItemRecptLineMapper;
import org.example.erp.service.WmItemRecptService;
import org.example.erp.mapper.WmItemRecptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86180
* @description 针对表【wm_item_recpt(产品入库录表)】的数据库操作Service实现
* @createDate 2024-12-02 14:31:18
*/
@Service
public class WmItemRecptServiceImpl extends ServiceImpl<WmItemRecptMapper, WmItemRecpt>
    implements WmItemRecptService {
    @Autowired
    private WmItemRecptMapper wmItemRecptMapper;

    public IPage<WmItemRecpt> find(Integer currentPage,
                                   Integer pageSize,
                                   String recptCode,
                                   String recptName,
                                   String supplierName,
                                   String poCode,
                                   String recptDate) {
        Page<WmItemRecpt> page = new Page<>(currentPage, pageSize);
        return wmItemRecptMapper.findRecpt(page, recptCode, recptName, supplierName, poCode, recptDate);
    }







    public IPage<WmItemRecptLine> find(Integer currentPage,
                                       Integer pageSize,
                                       String recptCode
    ) {
        Page<WmItemRecptLine> page = new Page<>(currentPage, pageSize);
        return wmItemRecptMapper.findWmItemRecptLine(page,recptCode);
    }
}



